package com.example.fenye.controller;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.example.fenye.entity.TryJqGridEntity;
import com.example.fenye.service.TryJqGridService;

@Controller
@RequestMapping(value="/tryjqgrid")
public class TryJqGridController {

	@Resource
	private TryJqGridService tryJqGridService;
	
	@ResponseBody
	@RequestMapping(value="/all")
	public List<TryJqGridEntity> getAll(){
		return tryJqGridService.getAll();
	}
	
	@RequestMapping(value="/index")
	public String index() {
		return "grid/index";
	}
}
